package com.Callable;

import java.util.concurrent.Callable;
//通过实现Callable接口来实现线程
public class MyThread implements Callable<String> {
    //重写call（）方法
    @Override
    public String call() throws Exception {
        for (int i = 0; i < 100; i++) {
            System.out.println("他请求了：" + i + "次成功了");
        }
        return "他最后成功了";
    }
}
